<?php
$session_id = !empty($_COOKIE['advanced-backendyan-doctor']) ? $_COOKIE['advanced-backendyan-doctor'] : ''; //PHPSESSID
if (session_id($session_id) == '') {
    session_start();
}

define('VF_TOKEN', true); // TRUE or FALSE
$params = require(__DIR__ . '/../../backend/config/params.php');
$_SESSION['access_keys'] = $params['filemanager_access_keys'];
function checkAccess(){
    return !empty($_SESSION['__id']);
}
return [
	'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"). "://". @$_SERVER['HTTP_HOST'],
	'upload_dir' => '/uploads/',
	'thumbs_upload_dir' => '/thumbs/',
	'current_path' => '../uploads/',
	'thumbs_base_path' => '../thumbs/',
	'filePermission' => 0755,
    'folderPermission' => 0777,
    'MaxSizeTotal' => false,
    'basePath' => dirname(__DIR__),
    'access_keys' => $params['filemanager_access_keys'],
    'max_upload_files'=>100,
    //**********************
    //Allowed extensions (lowercase insert)
    //**********************
    'ext_img'                                 => array( 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'ico', 'webp' ), //Images
    'ext_file'                                => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'tiff',''), //Files
    'ext_video'                               => array( 'mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm" ), //Video
    'ext_music'                               => array( 'mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav' ), //Audio
    'ext_misc'                                => array( 'zip', 'rar', 'gz', 'tar', 'iso', 'dmg' ), //Archives


    //*********************
    //  If you insert an extensions blacklist array the filemanager don't check any extensions but simply block the extensions in the list
    //  otherwise check Allowed extensions configuration
    //*********************
    'ext_blacklist'							  => ['exe','bat'], //false
    'cookie_id' => 'advanced-backendyan-doctor',
    'f3' =>[
        'set'=>['TEMP', dirname(__DIR__) . '/tmp/'],
    ],
];